home *** CD-ROM | disk | FTP | other *** search
- /*=========================================================================
-
- ATOC isid module
-
- =========================================================================*/
-
- #include <stdio.h>
- #include "atoc.h"
-
-
- /*-------------------------------------------------------------------------
- isid( c ) returns TRUE if c could be in an identifier, or FALSE otherwise.
- -------------------------------------------------------------------------*/
- int isid( c )
- char c;
- {
- static char s[] =
- "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- char *strchr();
-
- if ( c )
- if ( strchr( s, c ) != NULL )
- return( TRUE );
- return( FALSE );
- }
- /*=======================================================================*/